﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SortObjectsDistricts
/// </summary>
public class SortObjectsDistricts : IComparer<District>
{
    public int Compare(District dis1, District dis2)
    {
        return (dis1.DistID < dis2.DistID) ? 1 : ((dis1.DistID > dis2.DistID) ? -1 : 0);
    }
    public int Compare_DistrictName_DESC(District dis1, District dis2)
    {
        return dis1.NameOfDist.CompareTo(dis2.NameOfDist);
    }
}